//
// Created by 束庆乐 on 2024/12/23.
//
#include <stdio.h>
#include <stdlib.h>
#include "string.h"
int main33(){
    char *ptr = (char *)malloc(6*sizeof(char ));
    if (ptr == NULL){
        printf("内存分配失败\n");
        return 1;
    }
    strcpy(ptr,"Hello");
    printf("ptr==%s\n",ptr);
    ptr[0] = 'h';
    printf("修改后的ptr==%s\n",ptr);
    free(ptr);
    return 0;
}
